/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Frédéric
 */
public class Utilitaire extends Vehicule {
    
    private double tonnage;

    public double getTonnage() {
        return tonnage;
    }

    public void setTonnage(double tonnage) {
        this.tonnage = tonnage;
    }

    public Utilitaire(int id_vehicule, String denomination, int indexKilometrique, String numeroPlaque, double tonnage) {
        super(id_vehicule, denomination, indexKilometrique, numeroPlaque);
        this.tonnage = tonnage;
    }
    
    public double calculeCoutJour() {
        return 100 * this.getTonnage();
        //return 100 * this.tonnage;
    }
    
    public double calculeCoutKm() {
        return 3;
    }
    
    public String afficheToi() {
        return "(utilitaire) : " + super.afficheToi() + ", " + this.getTonnage() + ", " + this.calculeCoutJour() + ", " + this.calculeCoutKm();
    }
    
    
    
    
}
